<template>
  <el-row style="height:100%;overflow:hidden">
    <el-col style="background-color:#3b3a38;border">
      <div style="background-color:darkgray;height:65px;">
        <h5 style="color: white;line-height: 56px;text-align: center;font-size: 24px;">后台管理系统</h5>
      </div>
      <el-menu
        active-text-color="#ffd04b"
        background-color="#3b3a38"
        default-active="2"
        text-color="#fff"
        @open="handleOpen"
        @close="handleClose"
        unique-opened
      >
        <el-sub-menu index="1">
          <template #title>
            <el-icon>
              <Setting />
            </el-icon>
            <span>系统管理</span>
          </template>
          <el-menu-item index="1-1">
            <template #title>
              <el-icon>
                <User />
              </el-icon>
              <span>用户管理</span>
            </template>
          </el-menu-item>
          <el-menu-item index="1-2">
            <template #title>
              <el-icon>
                <Avatar />
              </el-icon>
              <span>角色管理</span>
            </template>
          </el-menu-item>
          <el-menu-item index="1-3">
            <template #title>
              <el-icon>
                <Lock />
              </el-icon>
              <span>权限管理</span>
            </template>
          </el-menu-item>
        </el-sub-menu>
      </el-menu>
    </el-col>
  </el-row>
</template>

<script setup>
import {
  Document,
  Menu as IconMenu,
  Location,
  Setting,
  User,
  Avatar,
  Lock
} from "@element-plus/icons-vue";
const handleOpen = (key, keyPath) => {
  console.log(key, keyPath);
};
const handleClose = (key, keyPath) => {
  console.log(key, keyPath);
};
</script>

<style lang="scss" scope>
</style>
